import axios from "./axios";

let graphic={
    query:(params?:any)=>{
        return axios({
            method:"GET",
            url:"/AudioCourse",
            params
        })
    },
    del:(id:any)=>{
        return axios({
            method:"DELETE",
            url:"/AudioCourse/"+id,
            
        })
    },
    add:(data:any)=>{
        return axios({
            method:"post",
            url:"/AudioCourse",
            data
        })
    },
    patch:(data:any)=>{
        return axios({
            method:"PATCH",
            url:"/AudioCourse/"+data.id,
            data
        })
    }
}
export default graphic